import { createRouter,createWebHistory } from 'vue-router'

const routes = [
  {
    path:'/',
    redirect:'/home'
  },
  {
    // 页面逻辑
    path: '/home',
    component: () => import('@/views/Home.vue')
  },
  {
    path:'/test',
    component: () => import('@/components/Test.vue')
  },
  {
    path:'/upload',
    component: () => import('@/views/Upload.vue')
  }
]

export default createRouter({
  history:createWebHistory(),
  routes
})